#!/bin/sh

DDIR=`echo $0 | sed 's,[^/]*$,,'`
cd $DDIR
PWD=`pwd`
for i in lib/*;
        do CLASSPATH=$PWD/$i:"$CLASSPATH";
done

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./lib
export CLASSPATH=$CLASSPATH
java -Xmx1024M -Xloggc:gc.log com.webterren.spider.Main &
